﻿# -*- coding: UTF-8 -*- 
def china_init_fun(config):
    import urllib2
    urllib2.urlopen(config['url'] + 'frame.php?frameon=no')

CONFIGS = (
#    {
#        'url': 'http://www.kugz.net/',
#        'username': 'cm2355',
#        'password': 'yangzi',
#        'encoding': 'gb2312',
#        'start_url_index': 5973
#    },

#    {
#        'url': 'http://forum.china.com.cn/',
#        'username': 'cm2355',
#        'password': 'yangzi',
#        'encoding': 'utf-8',
#        'start_url_index': 1325,
#        'init_fun': china_init_fun
#    },
#    
#    {
#        'url': 'http://bbs.52print.com/',
#        'username': 'cm2355',
#        'password': 'yangzi',
#        'encoding': 'gb2312',
#        'start_url_index': 372,
#    },
#    
#    {
#        'url': 'http://www.phdbbs.com/',
#        'username': 'cm2355',
#        'password': 'yangzi',
#        'encoding': 'gb2312',
#        'start_url_index': 1,
#    },

#     {
#         'url': 'http://bbs.010pifa.com/',
#         'username': 'cm2355',
#         'password': 'yangzi',
#         'encoding': 'gb2312',
#         'start_url_index': 1
#     },
     
#     {
#         'url': 'http://club.eduwo.com/',
#         'username': 'cm2355@x.com',
#         'password': 'yangzi',
#         'encoding': 'utf-8',
#         'start_url_index': 1
#     },

#    {
#        'url': 'http://bbs.21food.cn/',
#        'username': 'cm2355',
#        'password': 'yangzi',
#        'encoding': 'gb2312',
#        'start_url_index': 1
#    },
    
    {
        'url': 'http://www.taisha.org/bbs/',
        'username': 'cm2355',
        'password': 'yangzi',
        'encoding': 'gb2312',
        'start_url_index': 8598
    },
    
    {
        'url': 'http://bbs.021zhan.com/',
        'username': 'cm2355',
        'password': 'yangzi',
        'encoding': 'utf-8',
        'start_url_index': 1043
    },
    
    {
        'url': 'http://www.shzone.net/',
        'username': 'cm2355',
        'password': 'yangzi',
        'encoding': 'utf-8',
        'start_url_index': 1
    },
)

MAX_REJECTION_NUM = 1000

MAX_WORK_THREAD = 10